package cinema.model;

import cinema.service.*;

public abstract class User {
    protected String id;
    protected String username;
    protected String password;
    protected UserType type;
    protected String phone;

    public User(String id, String username, String password, UserType type, String phone) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.type = type;
        this.phone = phone;
    }

    public abstract void showMenu();

    public boolean checkPassword(String pwd) { return password.equals(pwd); }
    public void changePassword(String newPwd) { password = newPwd; }

    public String getUsername() { return username; }
    public String getId() { return id; }
    public UserType getType() { return type; }
    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }
}